package com.gitee.feizns.web.boot.utils.user;

import com.gitee.feizns.web.utils.UserUtils;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author feizns
 * @since 2019/8/3 0003
 */
@Configuration
@EnableConfigurationProperties(UserTokenProperties.class)
public class UserTokenUtilsAutoConfiguration {

    @Bean
    public UserUtils tokenUtils(UserTokenProperties properties, UserTokenHandler[] handler) {
        return new UserUtils(properties, handler);
    }

}
